(function() {
	var arr = [
		{
			"id": +new Date(),
			"isChecked":true,
			"name": 'A1',
			"age": 30,
			"sex": "男",
			"love": "学习",
		},{
			"id": 1,
			"isChecked":false,
			"name": 'A2',
			"age": 20,
			"sex": "女",
			"love": "健身",
		},{
			"id": 2,
			"isChecked":true,
			"name": 'A3',
			"age": 40,
			"sex": "女",
			"love": "夜跑",
		},{
			"id": 3,
			"isChecked":false,
			"name": 'A4',
			"age": 35,
			"sex": "男",
			"love": "睡觉",
		},
		{
			"id": 4,
			"isChecked":false,
			"name": 'A5',
			"age": 35,
			"sex": "男",
			"love": "写程序",
		},
	];



	var obj = {
		arr: arr,
		allchecked:false
	};
	// var obj = arr;
	//关闭可以保留选中与否的状态 ; 打开可以恢复到原始数据
    localStorage.obj = JSON.stringify(obj);
	if(!localStorage.obj) {
		localStorage.obj = JSON.stringify(obj);
	} 

}());
